package sample.view;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import static sample.utils.LogUtils.logger;

public class Login extends Application {
    public static Stage mainStage;
    @Override
    public void start(Stage primaryStage) throws Exception {
        logger.info("load app...");
        mainStage = primaryStage;
        Parent root = FXMLLoader.load(getClass().getResource("login.fxml"));
        mainStage.setTitle("Login");
        Scene scene = new Scene(root, 600, 400);
        scene.getStylesheets().add(Login.class.getResource("login.css").toExternalForm());
        mainStage.setScene(scene);
        mainStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
